package com.demo.cms.dao;

import java.util.Map;

import com.demo.cms.model.Channel;
import com.demo.core.dao.base.BaseCoreDao;
import com.demo.core.dao.base.support.SearchDaoSupport;

/**
 * CMS频道数据访问接口
 * 
 * @author ryuu.kk
 *
 */
public interface ChannelDao extends BaseCoreDao<Channel, Long>, SearchDaoSupport<Channel> {

	/**
	 * 更新频道状态信息
	 * (ENABLED, STATUS)
	 * @param channel 频道模型对象
	 * @param params 检索条件信息
	 * @return 成功操作数 
	 */
	int updateEnabled(Channel channel, Map<String, Object> params);
	
	/**
	 * 更新频道状态
	 * (STATUS)
	 * @param status 状态
	 * @param params
	 * @return
	 */
	int updateStatus(String status, Map<String, Object> params);
}
